package com.crm.service.customerManager;

import com.crm.model.entity.customerManager.CustomerPoolRule;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/1/17 15:15
 */
public interface CustomerPoolRuleDbService {
    /**
     * 添加客户池规则
     * @param customerPoolRule
     * @return
     */
    Boolean insertCustomerPoolRule(CustomerPoolRule customerPoolRule);

    /**
     * 根据客户池id删除客户池规则
     * @param customerPoolId
     * @return
     */
    Boolean deleteCustomerPoolRuleByCluePoolId(String customerPoolId);

    /**
     * 根据客户池id查询客户池规则
     * @param customerPoolId
     * @return
     */
    List<CustomerPoolRule> selectCustomerPoolRuleByCluePoolId(String customerPoolId);

    /**
     * 根据客户池id查询客户池领取规则
     * @param customerPoolId
     * @return
     */
    CustomerPoolRule selectCustomerPoolRuleReceive(String customerPoolId);
}
